Skip to content

fix(idle): restore the screens before re-arming the idle watches - #48

Merged
mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
ncz-os:fix-idle-restore-before-rearm
Nov 24, 2026
Merged

mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
ncz-os:fix-idle-restore-before-rearm

Conversation

@perlowja

@perlowja perlowja commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

IdleManager.rearm() drops every idle watch but does not undo a dim or blank already in progress. If a setting changes (or the charger is plugged in) while the screen is dimmed, it stays dimmed. rearm() now undoes both first.

Testing

On a laptop, dim the screen, then change screen-blank-ac. Before: the backlight stays at the dim level and the display stays off. After: both come back.

Generative AI assistance

AI assistance: disclosed

rearm() drops every idle watch, including the resume event that undoes a
dim or blank. If a setting changes while the screens are dimmed, they stay
dimmed. Undo the dim and blank first.

Assisted-by: claude-code:claude-sonnet-5-5
AI-Scope: Diagnosed the stuck dim from logs and wrote the small fix; the author reproduced and reviewed it on hardware.
@perlowja
perlowja force-pushed the fix-idle-restore-before-rearm branch from eb4ca1b to 66c26c1 Compare November 18, 2026 21:52
@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin this merges cleanly into main and CI is green. Ready for your review.

@mirkobrombin

Copy link
Copy Markdown
Member

Right fix. I dropped the comment, we keep code free of comments. Merging, follow-up on main.

@mirkobrombin
mirkobrombin merged commit f26d42c into singularityos-lab:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants